<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control"  content="no-transform">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>订单列表</title>
    <link href="/statics/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/statics/metisMenu/metisMenu.min.css" rel="stylesheet">
    <link href="/statics/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <link href="/statics/sb/css/sb-admin-2.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div id="wrapper">
    [#include "/bcenter/include/header.ftl" /]
    <!-- Page Content -->
    <div id="page-wrapper" style="min-height: 513px;">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">订单列表</h1>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <form id="listForm" action="list" method="get">
                    <div class="panel panel-default">
                    <div class="panel-heading">
                        <div  class="form-inline">
                            <div class="form-group">
                                <button type="button" class="btn btn-warning btn_delete">&nbsp;&nbsp;删除&nbsp;&nbsp;</button>
                            </div>
                            <div class="form-group">
                                <button type="button" class="btn btn-info btn-refresh">&nbsp;&nbsp;刷新&nbsp;&nbsp;</button>
                            </div>
                            <div class="form-group">
                                <input type="text" class="form-control" name="like_name" value="${like_name}" id="exampleInputEmail3" placeholder="商品名称">
                            </div>
                            <div class="form-group">
                                <label class="sr-only" for="exampleInputPassword3">SN编号</label>
                                <input type="text" class="form-control" name="like_sn" value="${like_sn}" placeholder="SN编号">
                            </div>
                            <button type="submit" class="btn btn-default">检索</button>
                            <div class="form-group" style="float: right">
                                <span>共${page.total}条记录</span>
                            </div>
                        </div>
                    </div>
                    <!-- /.panel-heading -->
                    <div class="panel-body">
                        <div class="dataTable_wrapper">
                            <table class="table table-striped table-bordered table-hover" id="listTable">
                                <thead>
                                <tr>
                                    <th><input type="checkbox" id="selectAll"/></th>
                                    <th>SN</th>
                                    <th>商品名称</th>
                                    <th>售价</th>
                                    <th>库存</th>
                                    <th>上架</th>
                                    <th>编辑</th>
                                </tr>
                                </thead>
                                <tbody>
                                 [#list page.content as entity]
                                 <tr class="odd gradeX">
                                     <td><input type="checkbox" name="ids" value="${entity.id}"/></td>
                                     <td>${entity.sn}</td>
                                     <td>${entity.name}</td>
                                     <td>${entity.price}</td>
                                     <td class="center">${entity.stock}</td>
                                     <td></td>
                                     <td class="center"><a href="edit?id=${entity.id}">[编辑]</a></td>
                                 </tr>
                                 [/#list]
                                </tbody>
                            </table>
                        </div>
                        [@pagination pageNumber = page.pageNumber totalPages = page.totalPages]
                            [#include "/common/pagination.ftl"]
                        [/@pagination]
                    </div>
                    <!-- /.panel-body -->
                </div>
                </form>
            </div>
            </div>
        </div>
    </div>
</div>
[#include "/bcenter/include/footer.ftl" /]
<script src="/statics/jquery/jquery.min.js"></script>
<script src="/statics/view/js/common.js"></script>
<script src="/statics/bootstrap/js/bootstrap.min.js"></script>
<script src="/statics/metisMenu/metisMenu.min.js"></script>
<script src="/statics/sb/js/sb-admin-2.js"></script>
</body>
</html>